Skip to content

Conversation

@Ecarrion
Copy link
Contributor

@Ecarrion Ecarrion commented Nov 1, 2022

Closes: #7949

Why

This PR makes sure that a template product can be used within the product form as it was manually populated by the merchant.

How

Instead of taking the long route and adding full auto-draft support to our product form module, I've taken a shortcut where after getting a template product, which has an auto-draft status, the app removes that product identity (id, name and status) so it's treated like a new product but with all the necessary content prefilled.

We can evaluate later if full auto-draft support is needed.

Demo

auto-draft-support.mov

Testing Steps

  • On a store with less than 3 products, tap the add product button
  • Select the "Template" option and a product type.
  • See that you can modify, save or publish the template product.

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@Ecarrion Ecarrion added the feature: products onboarding Related to onboarding new users to manage products label Nov 1, 2022
@Ecarrion Ecarrion added this to the 11.1 milestone Nov 1, 2022
@wpmobilebot
Copy link
Collaborator

You can test the changes from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr8005-5e5cfe8 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@rachelmcr rachelmcr self-assigned this Nov 2, 2022
Copy link
Contributor

@rachelmcr rachelmcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea! That shortcut makes a lot of sense for what we need right now. Looks good and tests well. 🚀

@Ecarrion Ecarrion merged commit 5f8125e into trunk Nov 2, 2022
@Ecarrion Ecarrion deleted the issue/7949-auto-draft-support branch November 2, 2022 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: products onboarding Related to onboarding new users to manage products

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Products Onboarding: Add Auto-draft support

4 participants